package com.woniuxy.service.impl;

import com.woniuxy.dao.AuthDao;
import com.woniuxy.entity.User;
import com.woniuxy.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 马宇航
 * @Do: auth服务层
 * @DateTime: 22/06/28/0028 下午 2:38
 * @Component: 成都蜗牛学苑
 **/
@Service
public class AuthServiceImpl implements AuthService {
    @Autowired
    AuthDao authDao;
    @Override
    public User findOneByAccount(String account) {
        return authDao.findOneByUsername(account);
    }
}
